package com.example.p6;

public class Main3 {
    static void vaTest(int... no) {
        System.out.print("vaTest(int...):" + "参数个数:" + no.length + "内容：");

        for (int n : no) {
            System.out.println(n + "");
            System.out.println();
        }
    }

    static void vaTest(boolean... b1) {
        System.out.print("vaTest(booolean...)" + "参数个数:" + b1.length + "内容：");
        for (boolean b : b1) {
            System.out.println(b + "");
            System.out.println();
        }
    }

    static void vaTest(String msg, int... no) {
        System.out.print("vaTest(String,int...:)" + msg + "参数个数：" + no.length + "内容：");
        for (int n : no) {
            System.out.print(n + "");
            System.out.println();
        }
    }

    public static void main(String[] args) {
        vaTest(1, 2, 3);
        vaTest("测试：", 10, 20);
        vaTest(true, false, false);
    }
}
